<?php
namespace app\backend\validate;

use think\Validate;

class Team extends Validate
{

    protected $rule =   [
        'team_name_cn'              => 'require|max:100',
        'team_name_en'              => 'max:100',
    ];

    protected $message  =   [
        'team_name_cn.require'      => '标题格式不正确',


    ];

    protected $scene = [
        'add' => ['team_name_cn','team_name_en'],
        'edit' => ['team_name_cn','team_name_en']
    ];

}


